<%@page import="youleche.com.model.MRentVehicleInfo"%>
<%@page import="java.util.List"%>
<%@page import="youleche.com.controler.controler.PageDataForBussinessControler"%>
<%@ page contentType="text/html;charset=UTF-8"%>
<style type="text/css">
.zcDiv ul li {
	margin-left: 0px;
	padding-right: 5px;
	padding-left:5px;
	line-height:30px;
	color: #444;
	/* list-style-type:none; */
	/* background:  url('image/1.jpg') no-repeat left center; */
	overflow:hidden;
	border-bottom: 1px dotted #000;
}

.zcDiv ul li a{
	color: #444;
	text-decoration: none;
}

.zcDiv ul li a:hover{
	text-decoration: underline;
}
</style>
<%
	List<MRentVehicleInfo> rentInfos = PageDataForBussinessControler.getRentInfosToHome();
	if(rentInfos == null && rentInfos.size() < 1){
		request.getRequestDispatcher("404.jsp").forward(request, response);
		return;
	}
%>
<div style="border:1px dotted green;width:188px;min-height:200px;float:left;margin-top:10px;">
		<div style="font: 500 22px/100% 'Microsoft Yahei';width:100%;height: 40px;margin-bottom: 10px;text-align:center;line-height:40px;">
			<img src="image/mrzc.jpg">
		</div>	
		<div style="width:100%;line-height:25px;font-size:14px;" class="zcDiv">
			<ul>
				<%
					for(int i =0; i< rentInfos.size(); i++){
						
						%>
						<li><a href="rent.do?action=1&id=<%=rentInfos.get(i).getRentId()%>"><%=rentInfos.get(i).getRentTitle() %>(<span style="font-size:18px;color:red;"><%=rentInfos.get(i).getRentPrice() %>元</span>/日)</a></li>
						<%
					}
				%>
				
			</ul>
		</div>		
</div>